package com.mycompany.webservice.service;

import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;



public class Test {

	/**
	 * @param args
	 */
	@Autowired
	private static InterestRateService interestRateService;
	
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context	= new ClassPathXmlApplicationContext(new String[] { "com/mycompany/webservice/service/client-beans.xml" });


		 

//		    InterestRateService client = (InterestRateService) context
//
//		                .getBean("rateServiceClient");

		    String arrayOfTypes= interestRateService.getMortgageTypes();

		        

		    //List<MortgageType> types = arrayOfTypes.getMortgageType();

		    System.out.println(arrayOfTypes);

//		    for (MortgageType aType: arrayOfTypes){
//
//		        
//
//		    }

	}

}
